<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>EEG情绪识别系统</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
    <style>
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f3f4f6;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }
        .container {
            background-color: #fff;
            border-radius: 8px;
            padding: 60px;
            box-shadow: 0 0 20px rgba(0, 0.1, 0.2, 0.3);
            text-align: center;
            animation: fadeIn 1s;
            width: 500px;
        }
        h1 {
            color: #333;
            font-size: 38px;
            margin-bottom: 20px;
            text-shadow: 3px 3px 4px rgba(0.2, 0.2, 0.2, 0.4);
        }
                /* 添加水平线样式 */
        hr {
            margin-bottom: 45px;
            border: none;
            border-top: 2px solid #000000;
        }
        #upload-btn, #submit-btn {
            border: none;
            background-color: #3498db;
            color: #fff;
            padding: 12px 24px;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 18px;
            margin-top: 20px;
        }
        #upload-btn:hover, #submit-btn:hover {
            background-color: #2980b9;
        }
        input[type="file"] {
            display: none;
        }
        label{
            display: inline-block;
            cursor: pointer;
            margin-bottom: 20px;
        }
        #file-icon {
            font-size: 35px;
            margin-right: 15px;
            vertical-align: middle;
            height: 60px; /* set height */
        }
        #file-name {
            margin-top: 30px;
            color: #666;
            margin-top: 15px;
            font-size: 20px;
            margin-left: 10px;
            display: inline-block;
            width: 220px;
            height: 35px;
            line-height: 35px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            border: 3px solid #ccc;
            padding: 0 10px;
        }
        #model1-select {
            margin-top: 5px; /* 调整下移 */
            text-align: center;
        }
        #model1-label {
            display: inline-block;
            margin-bottom: 10px;
            margin-right: 10px;
        }
        #model1 {
            padding: 8px;
            font-size: 16px;
        }
        /* 模态框样式 */
        .modal{
<!--            width: 350px;-->
            display: flex;
            margin-top: 280px;

            align-items: center;
            justify-content: center;
        }
        .modal-dialog{
        width: 350px;
        }
        .modal-title {
            width: 100%;
            text-align: center;
        }
        .modal-content {
            text-align: center;
        }

    </style>
</head>
<body>
    <div class="container">
        <h1>基于EEG数据的情绪识别系统</h1>
        <hr>
        <form action="/upload" method="post" enctype="multipart/form-data">
            <label for="file-upload">
                 <i id="file-icon" class="fas fa-cloud-upload-alt"></i> <!-- Custom file upload icon -->
                <span id="file-name">Please Upload File</span>
            </label>
            <input type="file" name="file" id="file-upload" onchange="updateFileName(this)">
            <div id="model1-select">
                <label for="model1" id="model1-label">选择模型:</label>
                <select name="model1" id="model1">

                    <option value="rf">2:随机森林 </option>
                    <option value="logr">2:逻辑回归 </option>
                    <option value="mlp">2:MLP分类 </option>
                    <option value="model1">3:Model DE</option>
                    <option value="model2">3:Model SPY</option>
                    <option value="model3">3:Model CLF</option>

<!--                    <option value="model3">Model 3</option>-->
<!--                    <option value="sub1">Sub 1</option>-->
                </select>
            </div>
            <br>
            <button type="submit" id="submit-btn">提交</button>
        </form>
    </div>


    <!-- 注册页面 JavaScript 代码 -->
    <script>
        function updateFileName(input) {
            var fileName = input.files[0] ? input.files[0].name : 'No file selected';
            document.getElementById("file-name").innerText = fileName;
        }
    </script>




</body>
</html>









